package com.chalmers.foa.gamemodel.gameobjects.effects;

import java.util.ArrayList;
import java.util.List;

import android.graphics.Point;

import com.chalmers.foa.gamemodel.gameobjects.effects.impl.Particle;

public abstract class ParticleEffect {
	
	private Point position;
	private int particleAmount;
	protected List<Particle> particles;
	
	public ParticleEffect(Point position, int particleAmount) {
		this.position = new Point(position);
		particles = new ArrayList<Particle>();
		this.particleAmount = particleAmount;
	}
	
	public Point getPosition() {
		return position;
	}
	
	public void setPosition(Point position){
		for(Particle p:particles)
			p.setPosition(position);
	}
	protected int getParticleAmount() {
		return particleAmount;
	}
	
	public List<Particle> getParticles() {
		return particles;
	}
	
	protected abstract void startEffect();
}
